﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GtsServer.Manage.CommunicationManage
{
    public class BasePage : System.Web.UI.Page
    {
        public static int pid = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["pid"] == null)
            {
                pid = 0;
                Response.Redirect("~/Page/Login.aspx");
            }
            else
            {
                pid = Convert.ToInt32(Session["pid"]);
            }
        }
    }
}